package com.kun.api;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kun.pojo.domain.TradeGoods;
import com.kun.pojo.domain.TradeGoodsNumberLog;
import com.kun.pojo.entity.Result;

public interface IGoodsService extends IService<TradeGoods> {

    /**
     * 根据商品ID查询
     */
    TradeGoods findOne(Long goodsId);

    /**
     * 扣减库存
     */
    Result reduceGoodsNum(TradeGoodsNumberLog tradeGoodsNumberLog);
}
